#include <DockedMainWindow.h>
#include <iostream>
DockedMainWindow::DockedMainWindow( QWidget *parent /*= 0*/ )
{
	m_mdiArea = new QMdiArea(this);
	setCentralWidget(m_mdiArea);
}

DockedMainWindow::~DockedMainWindow()
{

}

void DockedMainWindow::replaceQMdiArea( QMdiArea* mdiArea )
{

    if (mdiArea != NULL)
	{
        std::cout<<"m_mdiArea ="<<(int)mdiArea<<std::endl;
		setCentralWidget(mdiArea);
		delete  m_mdiArea;
		m_mdiArea = mdiArea;

	}
}
